package com.hwj.service.Impl;

import com.hwj.entity.Chat;
import com.hwj.mapper.ChatMapper;
import com.hwj.service.ChatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ChatServiceImpl implements ChatService {
    @Autowired
    ChatMapper chatMapper;

    @Override
    public List<Chat> listChat(Long loginId, Long userId) {
        return chatMapper.listChat(loginId,userId);
    }

    @Override
    public int insertSelective(Chat record) {
        return chatMapper.insertSelective(record);
    }
}
